<?php

# 短信配置
return [
    [
        'title'         => '阿里云短信',
        'name'          => 'aliun_sms',
        'children'      => [
            [
                # 配置项标识(可通过getHpconfig进行读取)
                'name' => 'aliyun_accessKeyId',
                # 配置项名称
                'title' => 'AccessKey ID',
                # 表单组件(参考common/enum/FormType.php)
                'component' => 'input',
                # 数据默认值
                'value' => '',
                'extra'         => [
                    'prompt' => [
                        'text' => '阿里云-AccessKey管理-AccessKey ID，<a href="https://ram.console.aliyun.com/manage/ak" target="_blank" style="color:var(--el-color-primary);">阿里云AccessKey</a>'
                    ],
                ],
            ],
            [
                # 配置项标识(可通过getHpconfig进行读取)
                'name' => 'aliyun_accessKeySecret',
                # 配置项名称
                'title' => 'AccessKey Secret',
                # 表单组件(参考common/enum/FormType.php)
                'component' => 'input',
                # 数据默认值
                'value' => '',
                'extra'         => [
                    'prompt' => [
                        'text' => '阿里云-AccessKey管理-AccessKey Secret'
                    ],
                ],
            ],
            [
                # 配置项标识(可通过getHpconfig进行读取)
                'name' => 'aliyun_TemplateCode',
                # 配置项名称
                'title' => '短信模板',
                # 表单组件(参考common/enum/FormType.php)
                'component' => 'input',
                # 数据默认值
                'value' => '',
                'extra'         => [
                    'prompt' => [
                        'text' => '阿里云-短信服务-国内消息-模板管理，<a href="https://dysms.console.aliyun.com/domestic/text/template" target="_blank" style="color:var(--el-color-primary);">阿里云短信模板</a>'
                    ],
                ],
            ],
            [
                # 配置项标识(可通过getHpconfig进行读取)
                'name' => 'aliyun_signName',
                # 配置项名称
                'title' => '短信签名',
                # 表单组件(参考common/enum/FormType.php)
                'component' => 'input',
                # 数据默认值
                'value' => '',
                'extra'         => [
                    'prompt' => [
                        'text' => '阿里云-短信服务-国内消息-签名管理，<a href="https://dysms.console.aliyun.com/domestic/text" target="_blank" style="color:var(--el-color-primary);">阿里云短信签名</a>'
                    ],
                ],
            ],
        ],
    ],
    [
        'title' => '短信宝',
        'name' => 'smsbao_sms',
        'children' => [
            [
                'component' => 'input',
                'name' => 'smsbao_username',
                'value' => '',
                'title' => 'UserName',
                'extra'         => [
                    'col' => [
                        'span' => 12
                    ],
                    'prompt' => [
                        'text' => '短信宝-国内通用短信-API-username，<a href="https://www.smsbao.com/" target="_blank" style="color:var(--el-color-primary);">短信宝</a>'
                    ],
                    'props' => [
                        'placeholder' => 'UserName'
                    ]
                ]
            ],
            [
                'component' => 'input',
                'name' => 'smsbao_password',
                'value' => '',
                'title' => 'API Key或密码',
                'extra'         => [
                    'col' => [
                        'span' => 12
                    ],
                    'prompt' => [
                        'text' => '短信宝-国内通用短信-API-API Key'
                    ],
                    'props' => [
                        'placeholder' => 'API Key或密码'
                    ]
                ]
            ],
            [
                'component' => 'input',
                'name' => 'smsbao_sign',
                'value' => '',
                'title' => '短信签名',
                'extra'         => [
                    'col' => [
                        'span' => 12
                    ],
                    'props' => [
                        'placeholder' => '短信签名'
                    ]
                ]
            ]
        ]
    ],
    /* [
        'title'         => '腾讯云短信',
        'name'          => 'qq_sms',
        'children'      => [
            [
                # 配置项标识(可通过getHpconfig进行读取)
                'name' => 'wechat_notice_status',
                # 配置项名称
                'title' => '公众号消息，待定',
                # 表单组件(参考common/enum/FormType.php)
                'component' => 'input',
                # 数据默认值
                'value' => '',
            ],
        ],
    ], */
];
